new classes for random variables, reworked examples