added a new class InMemoryGlossary provided by Thomas.