update code examples