made a lot of progress example actually outputs flow rate