code changed so that sums/products can handle multiple arguments.