adding get
Distance function