Added write file to "output.txt"