Assignment 3 map reduce