Added a new function to myt that lets us wrap a function on on object.