NLP course homework 2