construct function

Build code to recreate an object