remove useless code from chapter06
add static to chapter07
add static to chapter08