added custom aggregation example