code mapreducer task