print.distance function

Print method for class distance.