Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:6/8
K:Gmin
['d g2 aba/g/ ^f/g/ad cBA BGB/c/ ded', 'g f2'  
X:1
L:1/8
M:6/8
K:Gmin
 d g2 aba/g/ | ^f/g/ad cBA | BGB/c/ ded | de/d/c- c d2 :| d f2 gf/g/f/e/ | d B2 fbf | g f2 e/d/ed | 
 cc/d/e fdB | f b2 agd | =e a2 g^fd | g f2 e2 d- | dc/B/A- A G2 :|  