finshied creating the map, reduce, and finalize script