Running and testing the model