How a volcano is formed