Code for my DDD Scotland session 29-11-2014