chapter 5: exercise 10 - fibs