private static Dictionary<DateTime, double> GetTemperatureByWeeks(IDictionary<DateTime, int> weatherDictionary) { return weatherDictionary.SumUpToWeeks().ToDictionary(kv => kv.Key, kv => ((double) kv.Value)/7); }