Trying to do chapter 6