Adding distance calculation to the Coord class