Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/2=108
M:4/4
K:D
['(dA)FA (dA)FA (de)cd e2 e2 (de)fd gfed', 'A2 AF'  
X:1
L:1/8
Q:1/2=108
M:4/4
K:D
 (dA)FA (dA)FA | (de)cd e2 e2 | (de)fd gfed | (cA)Bc d2 d2 :| A2 AF A2 AF | (BAGF) G2 E2 | 
 G2 GE G2 GB | (AGFE) F2 D2 :|  