Added various chapter 3 examples and exercises