adding distance example