public boolean add(Pet pet) {
        for (int i = 0; i < list.length; i++) {
                            if (list[i] == null) {
                    list[i] = pet;
                    return true;
                }


        }
        Pet[] tempList = new Pet[list.length + 1];
        for (int j = 0; j < list.length; j++) {
            tempList[j] = list[j];
        }
        tempList[list.length] = pet;
        this.list = tempList;
        return true;
    }