Preparation of the model