結果 : create flow diagram using code