Add copy and updateFromModel functions to model