Example 14c. modified version of Example 2