Code snippets for multiple uses