Added class Summation. This closes #5.