Stencil code for Hadoop assignment