assignment3 mapreduce problem 2