Sample code snippets