added chapter 3 stuff