further additions to the code examples