add funtion: handleAnagrams/2