Class method "" does not exist