CREDIT AGREEMENT dated as of October 29, 1997