Added a custom aggregator example.
Merge pull request #1030 from pp-mo/custom_agg_eg

Added a custom aggregator example.