Updates to code examples