public Person getPerson(int i) {
    int count = 0;
    for (int j = 0; j < items.size(); j++) {
      if (items.get(j) instanceof Person) {
        if (count == i) {
          return (Person) items.get(j);
        }
        count++;
      }
    }
    return null;
  }