finished code for tutorial03.txt