Example 6 working