Add Simple Factory and Factory Method Pattern.