implemented distance method in mailman