Set up the model.