finishing off the excercises for the hadoop class