Theory of Reliability