"Return" added so that the total can be shown in the console