A student plans to prepare a diamide from a diacid. The diacid has the formula and the amine is . The student proposes the following two-step route:
Step 1: the diacid is warmed with an excess of ethanol and a few drops of concentrated . Step 2: the product of Step 1 is warmed with an excess of .
Describe the type of reaction in each step, the reagents and conditions used, and the structures of the organic products formed in each step.