Wrap methods in the appropriate class/object declaration