Refractive Index Measurement and its Applications