Added thesaurus api code