Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/4
Q:1/2=112
M:2/2
K:D
['A F A D'  
X:1
L:1/4
Q:1/2=112
M:2/2
K:D
|:"^A" A |"D" F A D A |"D" F A D d |"A7" c d e c |"D" d/c/d/e/ d A |"D" F A D A |"D" F A D d | 
"A7" c d e d/c/ |"D" d3 ::"^B" g |"Bm" f d2 e/f/ |"Em" g e2 g |"Bm" f d2 f |"A" e/d/c/B/ A3/2 g/ | 
"Bm" f d2 e/f/ |"Em" g e2 g |"D" f d"A7" f/e/d/c/ |"D" d3 :|  