wrote a test for the output case, what is the distance from a to d to c