Exhibit 10.5 Denny's Holdings, Inc. $175,000,000 10% Senior Notes due 2012 PURCHASE AGREEMENT