finished the creation of the model for the linear solver