adding scripts from chapter 13.