chapter 5: exercise 8 - constant