changed graph from pmf to cdf