Source: http://dmo.econ.msu.ru/teaching/L2/TrDemo/Exercices_Transition_corr.pdf