add first draft of NLP code