Stock markets, investment and a good society