@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof StarSystem)) return false;

        StarSystem that = (StarSystem) o;

        if (elements != null ? !elements.equals(that.elements) : that.elements != null) return false;
        if (!name.equals(that.name)) return false;

        return true;
    }