added tutorial code