Chapter 4 exercises done