Setting up a model