Worked on printRangeAndAvg