Code error. Too many unneeded variables and wrong total in print out.