latest changes
discrete rvs in functional form added