implemented chapter 10