// NEW! mutator for maxCount public void setMaxCount(int newMax) { if (newMax > 0) { maxCount = newMax; } else { System.out.println("Invalid new maximum count: " + newMax); } }