Finish Chap 5 exercises