Code snippets for student use