public static CarStatistics CalculateCarsStatistics(this IEnumerable <Car> car_List) { CarStatistics theseCarsStatictics = new CarStatistics(); foreach (var car in car_List) { theseCarsStatictics.Accumulate(car); } theseCarsStatictics.Compute(); return(theseCarsStatictics); }