exercise 16, playing with files