Writinf files for first time