Code snippets for practice