Simple epidemic model by a Markov chain