my code of MongoDB AggregationFramework