A barred spiral galaxy is a rotating disk of stars, gas and dust with a central bar of stars. Stars are classified based on their surface temperature, from hottest O-type blue stars to coolest M-type red stars. Stars evolve over their lifetimes, starting as protostars and becoming main sequence stars, then red giants, white dwarfs, neutron stars or black holes at the end of their lives.