Development of a Basel II Compliant Internal Ratings Based System (IRB)