Ajd chapter9

Chapter 9
Nice solution.