exercise 16 completed: Reading and Writing Files