corrects minor bug
Base class for Joint Probability Distribution