Two Period Model In Credit Markets