Title: A model of trade, foreign direct investment and licensing