The 4th example is an advanced version of the 3rd example. You will see that
the explanations in example 4 are very condensed, so it is more of a reference
than a tutorial.
Don't be afraid to try things; and don't expect everything to work the first
time.