Added function to file1.txt.