Exhibit 10.5 SECOND AMENDED AND RESTATED CLASS A-2 NOTE PURCHASE AGREEMENT Dated as of November 5, 2003