Tutorial on Discrete Hazard Functions