add example for calling methods