The luminosity function and the evolution of surface abundances of white dwarfs.