templates for model classes