Programming Collective Intelligence Code