pi & anagram ported