STOCK PURCHASE AND INVESTMENT AGREEMENT