Update code fragments for tutorial