improve code examples