What happens in a thermal decomposition reaction