Constructing model classes