Finish chapter 3 exercises