Change syntax for class method