Finished map reduce problem 6