number aggregation code separated into a different class