Chapeter 2 Aggregate functions in C#