add scripts for chapter 3