sample program for MapReduce