added a todo for writeToFIle method