How do gases change to solids?

Condensation and then freezing.