EXHIBIT 10.40 CREDIT AGREEMENT By and Between