Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
Q:1/2=80
M:2/2
K:D
['d2 A2'  
X:1
L:1/8
Q:1/2=80
M:2/2
K:D
"D" d2"A" c2"D" d2 A2 |"G" B2"A" c2"D" d4 |"G" g2"D" f2"G" b2"D" a2 |"Em" gfed"A" c4 | 
"D" (df)"Em" (eg)"D" (fd)"G" (ge) |"D" f2"A" g2"D" a4 |"D" fd"A" ec"Bm" dB"A" ac | 
"Bm" dB"E7"A^G"A" A4 |]"D" d2"B7" ^d2"A" ecBA |"A7" ceag"D" f2-"D7" f2 |"B7" babf"Em" gefg | 
"F#7" fedc"Bm" B4 |"D" d2"A" c2"D" d2 A2 |"G" Bagf"F#7" f4 |"Bm" b2 B2"G" c2 d2 |"Em" egfe"A" Tc4 | 
"D" FAdf"Em" GBeg |"F#m" Acfa"G" Bdgb |"Em" gfga bceg |"A7" fedc"D" d4 |]  