Example 13b.
modified version of Example 9