Chapter 5: I/O almost done