First basic implementation of the probability mass function.