Snell's law and refractive index part 1