Added example of sum and average