class Word{ String word; int totFreq = 0; float x; float y; float z; int nConnects; //this is called when a word is encountered need to check public void addWordInstance(){ totFreq++; } }