Some tutorial-type code to introduce map-reduce style of programming