working on chap 6