Modified and renamed Q3 mapper and reducer