attributes class method