Chapter 6 exercises done