private static int Sum(List<int> items) { var sum = 0; foreach (var item in items) { sum += item; } return sum; } }