EXHIBIT 2 STOCK PURCHASE AGREEMENT By and Between PATTERSON-UTI ENERGY, INC. as Purchaser and J. MARK ROPER as Seller Dated as of October 28, 2002 TABLE OF CONTENTS