Go through the following question and provide the answer:
 
A compound ‘X’ is formed when chlorine gas is passed over dry slaked lime. When ‘X’ is mixed with water, it releases a substance ‘Z’ responsible for its disinfectiion property. ‘Y’ is the slaked lime used in its preparation.

i. How is ‘X’ prepared from ‘Y’? Write the chemical equation.
ii. Explain how ‘X’ works as a bleaching agent.
 
i. The chemical equation is .
ii. ‘X’ bleaches by.