added first bits of tutorial code