Add chapter 4 sniplet