chapter 3 - the write stuff