Make a function part of the object it operates on.