Small fixes to code samples in Tutorials