public static double AverageOfSquares(IEnumerable<double> numbers)
        {
            return numbers.Select(x => x * x).Average();
        }