made the test result of exercise 6 go to a file restul.txt