Code resulting from tutorial 1