sumsAvg working