Factory Pattern In Design Patterns