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
['BAFA ABde f2 ed', 'fe d2 dA BAFA ABde f2 ed'  
X:1
L:1/8
M:2/2
K:D
"D" d2 dA BAFA | ABdA BAFA | ABde f2 ed |"A" Beed dgfe |"D" d2 dA BAFA | ABdA BAFA | ABde f2 ed | 
"A" dBAF"D" D4 ::"D" a2 ag f2 fe | d2 dA BAFA | ABde f2 ed |"A" Beed dgfe |"D" a2 ag f2 fe | 
 d2 dA BAFA | ABde f2 ed |"A" dBAF"D" D4 :|  