update examples in chapter 5