Statistical systems of particles in the expanding universe