Add chapter 8 - input and output