further work on code examples