Added new class ForEachSum which adds up all values in an array.