Added code to calculate the average. Changed console log to print out/test the average calculation.