Refactored DirecteGraph along with tests to remove CPDs from it.
Refactored BayesianModel along with tests to have CPDs over here.