Calculating probability with jelly beans