MASTER AGREEMENT dated as of July 2, 2004