EXHIBIT 10.4 SENIOR SECURED NOTE PURCHASE AGREEMENT Dated as of May 20, 2004