update with code examples