Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:6/8
K:D
['B2 A', 'c2 d'  
X:1
L:1/8
M:6/8
K:D
 D | FGA B2 A | d2 c B2 A | FGF E2 D | D d2 d2 :| d | c2 d edc | dec B2 A | c2 d e2 F | GAF E2 d | 
 c2 d edc | BcA d2 A | FGF E2 D | BdA BdA | FGF E2 D | D d2 d2 ||  