Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:4/4
K:D
['(3Bcd g2'  
X:1
L:1/8
M:4/4
K:D
"D" d2 Ad BdAB | d2 fd"G" edBc |"D" d2 Ad BdAd |1"G" (3Bcd ef"A" gefe :|2"G" (3Bcd ef"A" g2 fg || 
"D" a f3 d f3 | a f3"A" g e3 |"D" a f3 dfed |1"G" (3Bcd ef"A" g2 fg :|2"G" (3Bcd ef"A" g2 fe || 
"D" d4 ||  