implemented basic aggregator functionality with tests. Handles #19 for insta-flex.