How Markets Work and Fail, and What to Make of Them