Design Pattern Demo Code