code examples and exercises