Tutorial fixes

A couple of fixes for code in the tutorial.