committing fixing sum-series and testing with loops.