added some tutorial code