Initial working solution of mapreduce with examples