Understanding Markov Chains:Examples and Applications