A gentle introduction to Markov chains