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
['F2 F2 FAdF GFED CEAG', 'D2 uf2 efgf edcA defg a2 a2'  
X:1
L:1/8
M:2/2
K:D
 (uAG) | F2 F2 FAdF | GFED CEAG | FAdf gfed | (3(efe) (3(cdB) (3(ABA) (3(FGE) | F2 F2 FAdF | 
 GFED CEAG | FAdA BGEC | D2 D2 D2 :: uf2 | efgf edcA | defg a2 a2 | (3(gag) e2 (3(faf) d2 | 
 (3(efe) (3(cdB) (3(ABG) (3(FGE) | F2 F2 FAdF | GFED CEAG | EAdA Bgec | d2 d2 d2 :|  