Endogenous monetary policy and the business cycle