Example 14b. modified version of Example 2