The credit risk model developed by Hamilton, James and Webber introduces the firm-specific information into the rating transition process through a measure of credit quality of the underlying firm. In this paper, we present an algorithm, for constructing a three-dimensional lattice to implement...