Exhibit 10.12 AMENDED AND RESTATED NOTE PURCHASE AGREEMENT (VARIABLE FUNDING NOTE, CLASS A), dated as of January 12, 2007,