the map reduce functions work with file input and file output.