add total_distance attr to Path cls