Samir is watching waves hit a beach. He notices that as the waves get closer to the shore (where the water is shallow), they change direction. Which type of wave effect is he seeing?