organizing the input data and create a structure to save output files.