- fix write to file in task 3.5