Add distance_from method to Technology class.