Code snippets for examples