Implements sum.  Plus spec for reverse function.