fixed var total in exercise 1