adding usage example to aggregate method