Added the whole scripts from the chapter 8 of PCG