[EDITED](singleton.py) added client code