added average calculator
tests