added sample for map-reduce