docstring improved for Sum