Example code as shown in presentation by Michael Büttner