add implementation for aggregation
Merge pull request #2 from yuyongyang800/yongyang

add implementation for aggregation