Modified discrete_rv to use decorator notation for properties