Chapter 6 examples compile