Program 5: Cumulative distributio for differents z