Moved the totals print statement one layer up on the for loop, so that it is a true total.