Add some scripts to chap 7 & 8