changing location#distance method to distance_to