Exhibit 10(g) MASTER AGREEMENT Dated as of July 30, 2001