Main and code examples