add an example : use method as object