End chapter 5 exercises