Chapter 9 exercises done