implemeted get synonyms method