Added summation print statement