example code for a wordlist viewer