Slightly cleaner total

The second argument to sum is the initial value for the reduce.