Added console.log

Prints the total to the console