finished code for tutorial02.txt