A slightly more advanced example

This example uses the suggestions from Martin Halter and adds some
complexity