Implement but not test Aggregate.java