Complete chapter 1 example 2 and fix script source