added code examples