total() should just return a string, not call console.log() itself.