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
['GFGA B2 gB fB e2', 'dBAF EDEF GEGA B2 gB fB e2'  
X:1
L:1/8
M:2/2
K:D
"Em" BGEF GFGA | B2 gB fB e2 | BGEF GBAG |"D" (3FED AD BDAD |"Em" EDEF GFGA | B2 gB fB e2 | 
"D" d2 ce dBAF | DFAF"Em" GE E2 :: B e3 B e3 | Beef edBc |"D" d A3 f"^(""A""^)" A3 |"D" dAce dBAF | 
"Em" EDEF GEGA | B2 gB fB e2 |"D" d2 ce dBAF | DFAF"Em" GE E2 :|  