chapter 6

jmt chapter6
because when I tried without that if block, I got an error