a bit of naive bayesian (not finished yet)