Aggregation methods implemented and tested in main