Started writing methods to calculate distance