A star typically spends 90% of its life as a