Probability MAPLE CODING