Han Yan mapper and reducer