Sample For DAG Using Tasks