Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/2
K:D
['A (Ad).d.d (df)fa gfed ce A2 (Ad).d.d', 'd f (dA) A2 (Bc) d2 AFED'  
X:1
L:1/8
M:2/2
K:D
 A | (Ad).d.d (df)fa | gfed ce A2 | (Ad).d.d (df).f.a | gfge d2 d :: f | (dA) A2 (Bc) d2 | 
 AFED (DE) E2 | (dA).A.A (Bc).d.e | fgef d2 d :|  