CalculateAverage method1