update code examples level 1 and 2