add method to calculate distance
add method to calculate time