Set the model in the constructor.