Update distance.rb