Refactored demandVer1Network.py