A student plans to prepare a symmetrical diamide, , from 2,2-dimethylpropanedioic acid, . The student proposes the following two-step route.
Step 1: 2,2-dimethylpropanedioic acid is warmed with an excess of . Step 2: the product of Step 1 is added to an excess of aqueous ammonia, .
Describe the type of reaction in each step, the reagent and conditions used, and identify a possible by-product of Step 2.