Example 13c.
modified version of Example 9