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:Bmin
['Bdfd edBA B2 dB ABFA', 'd2 AF Adfd'  
X:1
L:1/8
M:4/4
K:Bmin
|: Bdfd edBA | B2 dB ABFA | Bdfd e2 (3fga | b2 af edBA | Bdfd edBA | B2 dB ABFA | AFEF ABce |1 
 f2 ec dBBA :|2 fdec dBBc |: d2 AF Adfd | e2 BG Bgfe | d2 AF Adfd | egfe dBBc | d2 AF Adfd | 
 e2 BG Bgfe | d2 AF Adfd | egfe dBBA :|  