finished chapter 19 (input/output)