updated mapreduce example