added snippets to example page