Corrected errors in the tutorial so that everything should compile again