結果 : create flow diagram with code