State the functional groups that undergo cracking and substitution reaction.