added chapter 12 demos