Sample code for Elastic MapReduce