MapReduce learning code