In addition to printing out individual terms,

it now also adds these terms to the "terms" arrayList