A Model of the International Monetary System