mapreduce sample code