0.3 Added average, weightedAverage functions