add missing source code snippets