avg1 function

Finished the avg1 function. put in a 2/3 weighting on the average.