Formation and evolution of elliptical galaxies