modifications for RPN and Anagrams