begin chapter 3 of File IO