Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/4=120
M:6/8
K:Gmin
['', 'DS (DG).G (G^FG) (AGA) |1 f2 =e'  
X:1
L:1/8
Q:1/4=120
M:6/8
K:Gmin
"^With spirit""^A" |: DS | (DG).G (G^FG) | (AGA) |1 f2 =e | (fed) (dcA) | (AGA) F2 :|2 fd=e | 
 f2 d (cA).^F | G3 G2"^B" | d | g>dd g>dd | gd=e f3 | F(f=e) f_ed | cAG F2 (G/F/)S |]  