The tutorial code