committing adding docstring to sum_series function