correct syntax for object methods