Demonstrate how to use design patterns in Swift