This is a Factory Pattern class implementation in Python