function[e] = calculate_aggregates(e)
for a = 1:length(e.aggregates)
display(sprintf('calculating aggregate %d...', a));
e = e.calculate_aggregate(a);
end