Fixes to code samples