Wrote aggregateData.cc