Implement Aggregate.java