what is the first stage of a stars life cycle​