added TermDefinition class, changes with properties