Updated code examples