New function dist in module Position