assignment 3 map reduce exercises