Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:2/2
K:D
['AFDF dFDF', 'dfec dfec', '[EA,][EA,] [EA,][EA,]'  
X:1
L:1/8
M:2/2
K:D
"A" | z A, |"D" D2 DC DCDE | C<D D2 D3 E | F2 FE FEFG | E<F F2 F3 G | AFDF dFDF | AFDF dFDF | 
"A7" E2 ED EDEF | E3 F E2"B" :: z A- |"A7" ABcd efgf | gfgf g2 z A- | ABcd efgf | gfgf gfec | 
"D" dfec dfec | dfec dfec | d2 cB"A7" AGFE |"D" D3 E D2"C" :: FE |"D" D2 F2 A2 F2 | d2 F2 A2 D2 | 
"A7" G2 GE"D" F2 FD | EDEF E2 FE |"D" D2 F2 A2 F2 | d2 A2 F2 D2 |"A7" E2 ED EDEF |"D" D4 D2"D" :: 
 z2 |"A" [EA,][EA,] [cE][cE]"A" [EA,][EA,] [cE][cE] | 
"D" [FA,][FA,] [dF][dF]"D" [FA,][FA,] [dF][dF] |"A" [EA,][EA,] [cE][cE]"A" [EA,][EA,] [cE][cE] | 
"D" [FA,][FA,] [dF][dF]"D" [FA,][FA,] [dF][dF] |"G" [GG,][GG,] [gB][gB]"G" [GG,][GG,] [gB][gB] | 
"A" [EA,][EA,] [ac][ac]"A" [EA,][EA,] [ac][ac] |"D" [dD]2 [dD][cD] [dD][cD] [dD][eD] |"D" [dD]6 :|  