Chapter 8 exercises done.