Adding Udacity's mapper and reduce base code