averages

added an average calculating methode