chapter 6 mostly done, needs to be split