Exercise 16

Writing to a file