update examples in chapter 3