Michael Collin's NLP course - assignment 1