Fundamentals of Stochastic Models