update model class