Created an abstract base class for wordlists.