Safety and Risk Modeling and Its Applications