completed calculate-distance challenge