first rough version of chapter 9