Example of the MongoDB aggregation framework