Creation of the loadModel method