Chapter 4 conditional code