Waves In Layered Media