EXHIBIT 10.5 CREDIT AGREEMENT Dated as of October 3, 1997