placing solution in the file