finish chapter 6 parsing