Stellar evolution. i - the approach to the main sequence.