Fixed example for method prototypes.