And I think what we 've learned here , but if anybody had been studying history they would have understood earlier , is that the market is the most effective mechanism for creating wealth and distributing resources to produce goods and services that history has ever known , but that it goes off the rail sometimes ; that if it 's completely unregulated , that if there are no thoughtful frameworks to channel the creative energy of the market , that it can end up in a very bad place .