update some scripts in ch06~ch08