Added code examples.