Chapter 5 exercises done