What takes place when a gas changes into a liquid?

condensation