Code for workshop 2014 June 29