Refraction of light through concept of Wavefront