bunch of stuff from chapter 3