updated materials with code examples