What type of restrictions are you dealing with here? There are various ways to accomplish this, but your post seems to imply that the simplest one (adding the methods to the file describing your object's class) is off-limit. A little more background would help narrow down the amount of hackery required in your case.