Code Examples for EKON 17 Advanced Patterns