renamed model_type->kind and name->prototype in the model class