Base class for Joint Probability Distribution