chapter 4 challenge - if then else