adding getAverage