Added snippet code files for chapter 3