Code for the http://www.thinkingdigital.co.uk/schedule/2013/masterclasses/coding-for-beginners class