Change of method

Calculate distance in a different way
Commit