Demonstration of design patterns