Adding abstract factory pattern example.

An example used for factory design has been extended.