template for anagrams