Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/8
M:9/8
K:Bmin
['e2 e edB B2', 'c3 afd d2 a'  
X:1
L:1/8
M:9/8
K:Bmin
|: f2 B B2 F ABd | e2 e edB B2 f | e2 e edB B2 F | B2 d GdA Bde | f2 B B2 F ABd | e2 e edB B2 f | 
 bg f2 AB ddB |1 def e2 d B3 :|2 def z ed B3 |: fd B2 fd B2 G | Ae c2 Ae c3 | afd d2 a fab | 
 bge fdB B2 A | fd B2 fd B2 G | Ae c2 Ae c3 | afd d2 a fa[d'b] |1 bge fgf edB :|2 b6- b3 ||  