Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
Q:1/8=300
M:9/8
K:Emin
['g dBB', 'e2 f gfg'  
X:1
L:1/8
Q:1/8=300
M:9/8
K:Emin
 g | dBB BAB GEE | dBG ABd e2 g | dBB B2 A GAB | BAG ABd e2 :| f | gfg egf/e/ dBB | gfg agf e2 f | 
 gfg agf efg | dBG ABd e2 :|  