Here is exercise 16. It introduces writing to files.