Add a new method to a prototype of an object