When the same monochromatic ray of light travels through glass slab and through water