This is the tutorial code I presented on day 1 of Hackademy 2014