this is the code in the book called mahout in action