Start implementing DistanceMeter.
Some portions of code are got from NewPing.