Stochastic models in reliability