Added a copy(Model) function