A Theory of Stellar Evolution