Measuring distance between two points

Simple example of measuring distance between two points.