Finish chap 6 exercises