Codes from my practice of the book "programming Collective Intelligence"