INTERACTIVE EXAMPLE 2: PROBLEM 9