int getIndex(String section) { for (int i = 0; i < length; i++) { if (this[i].title == section) return i; } return -1; }