Source: http://www.educa.fmf.uni-lj.si/logo/doc/Apr.96/chpt6.pdf