Implement Chap 9 exercises.