refining the flowcontrol example slightly