Source: http://dmo.econ.msu.ru/teaching/l2/trdemo/Exercices_Transition_corr.pdf