Add some code.

This code is based on the tutorial on the main website:
http://hadoop.apache.org/docs/r0.18.3/mapred_tutorial.html

However, I had to make some changes to make it usable.