Added graphics for the average calculation.