Modelling of Queueing Systems with Markov Chains