Added distance method
Added distance method