INTERACTIVE EXAMPLE 1: PROBLEM 8