improved code examples