Extracted mapper and reducer into seperate files