template classes of models