Chapter 7 exercises done