Added exercise 3.47 and 3.5.1 examples