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:Bmin
['AFF dFF A^GB', 'AFA B2', 'Baa fge'  
X:1
L:1/8
M:6/8
K:Bmin
 AFF dFF | A^GB AFD | AFF dFE | DFA B2 d | AFF dFF | A^GB AFE | F3 FEF | DFA B2 d :| ABc d3 | 
 dfa afd | geg fdB | AFA B2 d | ABc dcd | dfa gfe | fge fdB |1 AFA B2 d :|2 AFA B2 || A | Bbb Baa | 
 fge fdA | Bbb Baa | AFA B2 A | Bbb Baa | fge fdB | AFd AFE | DFA B2 :|  