Example 8 With correct Implementation