finished ex16, made 'test.txt' in the process