Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:Bmin
['B2 Bc dBcd ecda f2 fa b2', 'b2 ba fede'  
X:1
L:1/8
M:4/4
K:Bmin
|: B2 Bc dBcd | ecda f2 fa | b2 ba fede | fcaf e2 dc | B2 Bc dBcd | ecda f2 fa | b2 ba fede | 
 c2 B2 B4 :| b2 ba fede | fdaf e2 de | f2 ec B2 ed | fdaf efaf | b2 ba fede | fdaf efaf | 
 b2 ba fede | c2 B2 B4 :|  