made a clean class out of flow.py