ch6,ch7,ch8 commits