Evolution of rich clusters of galaxies