Refraction through a rectangular block