Measuring distances and areas