Working on Rrestdist; new class "rest.dist".