added rangefinder class