reorganized chapter 2 under mapreduce package