finished chap6