chapter 6 - regex
new classes added from chapter6
added examples from chapter 7