Design Pattern Sample Code