@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Star star = (Star) o;

        if (temperature != star.temperature) return false;
        if (starClass != star.starClass) return false;

        return true;
    }