Finish chapter 4 exercises