Updating code examples for version 1.1