changes for Chapter 5 exercises