@Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (!(obj instanceof SevenSegmentDisplay)) return false;
        
        SevenSegmentDisplay other = (SevenSegmentDisplay)obj;
        return other.top == this.top
                && other.middle == this.middle
                && other.bottom == this.bottom
                && other.upperLeft == this.upperLeft
                && other.upperRight == this.upperRight
                && other.lowerRight == this.lowerRight
                && other.lowerLeft == this.lowerLeft;
    }