Helpful code snippets and classes (Objective-C)