added distance calculation
 Please enter the commit message for your changes. Lines starting
merge fix
finished input
ending changes