added bayes logic file