Sourcecode for presentation given at Pictilin 2014