Working version w/o using Bays' Net inference