Defining the model