just trying out the code from the great book "Programming Collective Intelligence"