MASTER AGREEMENT dated as of June 28, 2005 and