class for calculating the arithmetic mean of a number of values