example 3 completed

Here is the completed version of example 3