added another way to get sum and average testing method with an empty collection