Code demo for design patterns using C#