finished advanced topics chapter 3