add probabilityForNumber method