Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:3/8=100
M:6/8
K:D
['d2 A B2 A'  
X:1
L:1/8
Q:3/8=100
M:6/8
K:D
"D" d2 A B2 A |"Bm" d2 A B2 A |"G" def g2 f |"A" efd cBA |"D" d2 A B2 A |"Bm" d2 A B2 A | 
"G" def gab |"A7" aec"D" d3 ::"A7" Ace g3 |"D" f3"A" e3 |"D" Adf a3 |"G" g3"D" f3 |"A7" Ace g3 | 
"D" f3"A" e2 f |"G" gab"D" afd |"A7" f2 e"D" d3 :|  