Example for map reduce coding approach