Fix formatting errors in AverageCalculator class