DAG.py implemented