MASTER AGREEMENT dated as of October 18, 2007