Code snippets for specific tasks