updating generic Model class