Refraction and Total Internal Reflection in glass block