Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
Q:1/4=120
M:2/4
K:D
['a2 d2 e/d/c de fagf e/d/c/B/ A/B/c/d/']  
X:1
L:1/8
Q:1/4=120
M:2/4
K:D
 a2 d2 | e/d/c de | fagf | e/d/c/B/ A/B/c/d/ | eA f2 | ec d2 | c/B/A TB2 | A4 |:  