Bayes.scala workings