@Override
    public boolean equals(Object object) {
        if (object == null) {
            return false;
        }
        if (object == this) {
            return true;
        }
        if (object instanceof Instructor) {
            Instructor other = (Instructor) object;
            return name.equals(other.getName()) && phoneNumber.equals(other.getPhoneNumber());
        }
        return false;
    }