Constructing probability distribution table