public Builder temperature(int receivedTemperature) {
            if (receivedTemperature > 25000) {
                starClass = StellarClassification.O;
            }
            if (receivedTemperature <= 25000) {
                starClass = StellarClassification.B;
            }
            if (receivedTemperature <= 11000) {
                starClass = StellarClassification.A;
            }
            if (receivedTemperature <= 7500) {
                starClass = StellarClassification.F;
            }
            if (receivedTemperature <= 6000) {
                starClass = StellarClassification.G;
            }
            if (receivedTemperature <= 5000) {
                starClass = StellarClassification.K;
            }
            if (receivedTemperature <= 3500) {
                starClass = StellarClassification.M;
            }
            this.temperature = receivedTemperature;
            return this;
        }