comments and refactoring
add method to calculate defined route length
implement and test route calculation