Please choose the correct answer to the question: Delilah put a container of water in the freezer and left it there overnight. The next morning she saw that the water in the container had changed to ice. Which of the following statements best explains why the water changed to ice?

Answer1: The water gained energy. Answer2: The water absorbed light. Answer3: Mass was released from the water. Answer4: Heat was taken away from the water.

Answer format: answer1/answer2/answer3/answer4
Answer: answer4