The invention is directed to a method for producing titanium dioxide nanotubes, the method comprising anodizing titanium metal in contact with an electrolytic medium containing an ionic liquid. It comprises sun visor body, retracting unit, and bendable arm connecting the sun visor body and the retracting unit mounted on a vehicle’s ceiling. Also, values are stored in a linear to surface distance look-up table for determining the surface distance of a linear value.