Wrote code to get average, variance, and standard deviation