Working code for loading the model