finish model class