Added a getDistance() method

Might change depending on methods of other classes