Various code snippets from written at Carnegie Mellon University & Jacobs University Bremen