new data construct writing to file