Solving the NLP Assignments