Setting up the model.