Chapt 5 & 6

examples from chapter 5 / 6