On reliability theory and its applications