updating tests
moving distance-related items into separate classes
adding ability to update distances