Գրեք սա: A hierarchy of failures-based models: theory and application