In the simplest case, a hot luminous star begins to expand as its core hydrogen is exhausted, and first becomes a blue subgiant then a blue giant, becoming both cooler and more luminous. Intermediate-mass stars will continue to expand and cool until they become red giants. Massive stars also continue to expand as hydrogen shell burning progresses, but they do so at approximately constant luminosity and move horizontally across the HR diagram. In this way they can quickly pass through blue giant, bright blue giant, blue supergiant, and yellow supergiant classes, until they become red supergiants. The luminosity class for such stars is determined from spectral lines that are sensitive to the surface gravity of the star, with more expanded and luminous stars being given I (supergiant) classifications while somewhat less expanded and more luminous stars are given luminosity II or III. Because they are massive stars with short lives, many blue giants are found in O-B associations, that are large collections of loosely bound young stars.