Transfer of Polarized Radiation in a Stellar Atmosphere