updated tutorial code