distance method, example of array from article