[cs] snippet updated in chapter 1