creation of the model