Credit risk modeling :design and application