Added a simple example for Factory Design Pattern