Started building out the code to construct the output file