Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['A2 FG AF D2 d2 |{fg} a2']  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
 A2 | FG AF D2 d2 |{fg} a2 gf e2 A2 | B2 c2 dA GF | (F2 E2) z2 E2 | AB cd ec BA | df af{f} e2 d2 | 
{d} c2 BA F2 ^G2 | A4 ||  