defina and access a class method