methods from chapter 6