How to make the most of the wisdom of crowds