Alternative definition of sum.