adding files from chapter 3 examples