Add AggregateFactory to the example code

PR #42 changes were not applied to the examples directory, causing breakage of unit tests in /examples