Discuss the life cycle of a star.