A galaxy is a large group of stars, gas, and dust held together by gravity. The three main types of galaxies are elliptical, spiral, and irregular galaxies. A spiral galaxy has a central bulge and outer disk with spiral arms. The Milky Way galaxy is a large barred spiral galaxy that contains our solar system. A star is a luminous ball of gas that produces energy through nuclear fusion at its core. There are several stages in a star's life including protostars, main sequence stars, red giants, and white dwarfs.