DesignPattern code.