Example 6 updating diagram