What are the stages in the life cycle of a small star?