Reflection and Refraction of Waves