inheritance test
no more nesting
grams are now a list of tuples
transition table now uses tuples