Refraction of light through a glass slab