Code when learning the book "MiningTheSocialWeb"