Utility classes and code snippets