creating and formatting a lessons data file