sample code for studying hadoop mapreduce