Wrap methods in an object