init code examples