Example6 completed