Chapter 9
Chapter9: fixed bugs