Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:2/2
K:D
['dc dA FA df ed'  
X:1
L:1/8
M:2/2
K:D
 (3ABc |"D" dc dA FA df |"A7" ed cB A2 g2 |"D" fg af"G" gf ed |"E" ed cB"A7" Ag fe | 
"D" dc dA FA df |"Em" ed cB"A7" A2 g2 |"D" fa fd"A7" eg ec |"D" d2 f2 d2 :: fg |"D" af af d2 ga | 
"G" bg bg"A7" e2 fg |"D" af ba"G" gf ed |"E7" ed cB"A7" Ag fe |"D" dc dA FA df | 
"Em" ed cB"A7" A2 g2 |"D" fa fd"A7" eg ec |"D" d2 f2 d2 :|  