Added feature to print unique words