Add definition for object method