A Model of Primary and Secondary Waves in Investment Cycles.