Demonstration of design pattern