Re-arranging mapReduce example