Completes Chapter 4 exercises