Add definitions of mapper, reducer, and combiner