Dynamic interest rate and credit risk models