Exercise 17
Another example using files