added an example for the freq_terms function