Creation of model classes