Example code of the Advanced Programming lecture