added nested aggregate
Merge pull request #15 from norrislee/master

added nested aggregate