Added example of complex aggregation