You are given three circuit elements X, Y, and Z. They are connected one by one across a given ac source. It is found that \( V \) and \( I \) are in phase for element X. \( V \) leads \( I \) by \( \frac{\pi}{4} \) for element Y while \( I \) leads \( V \) by \( \frac{\pi}{4} \) for element Z. Identify elements X, Y, and Z.