first commit, added examples from chapter 8