code snippets for Pazur2014 presentation