new file:   factoryPattern.py