Concept of refractive index and refraction of light