Added getAverage and getSum