putting the method in the model