Implement example of map reduce.
Fix merge conflicts.