Completed WordTrigger class and its subclasses