Chapter 5 examples updated