@Override
    public List<PastMeeting> getPastMeetingList(Contact contact) {
        if(contactExists(contact)) {
            Iterator meetingIterator = allMeetings.iterator();
            Meeting nextMeeting;
            //Calendar nextCal;
            List<PastMeeting> returnList = new ArrayList<>();
            while(meetingIterator.hasNext()) {
                nextMeeting = (Meeting) meetingIterator.next();
                //nextCal = nextMeeting.getDate();
                if(nextMeeting instanceof PastMeeting && nextMeeting.getContacts().contains(contact)) {
                    returnList.add((PastMeeting) nextMeeting);
                }
            }
            // Sorts list using the Comparator from Java Collections.
            Collections.sort(returnList, dateSorter);
            return returnList;
        } else {
            throw new IllegalArgumentException();
        }
    }