Introduction to stochastic models