local dataflow example complete, but slow