With reference to phase changes in matter, consider the following statements:
- When a liquid freezes, it releases thermal energy into its immediate environment.
- When a solid melts, it releases thermal energy into its immediate environment.
- When a solid melts, its temperature increases.
Select the correct option from the codes given below: