getTerms() added to main class