Implemented anagrammify method