A Model of the Trade Cycle