A few helpful reusable snippets and classes