EXHIBIT 10.7 TERM LOAN AGREEMENT Dated as of October 23, 1997