New "distance" class