adding some chapter 6 stuff