http://www.ling.gu.se/~lager/kurser/...logy/lab4.html