Initial code of refractometer