now with working Bayes Factor calculation