Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/4
K:Gmin
['G>A Bc dg d2', 'c/B/A/G/ ^FD', 'c>d eg ab g2'  
X:1
L:1/8
M:2/4
K:Gmin
|: G>A Bc | dg d2 | cB{c} BA | G^F{G} FD | G>A Bc | dg d2 | c/B/A/G/ ^FD |1 G2 GD :|2 G2 G2 |: 
 c/B/A/G/ ^FD | ^F/D/G/D/ FD | c/B/A/G/ ^FD | ^F/D/G/D/ Ad | c/B/A/G/ ^FD | ^F/D/G/D/ FD | 
 c/B/A/G/ ^FD | G2 G2 :| c>d eg | ab g2 | B>c dg | a^f g2 | c>d eg | ab g2 | g^f{g} fe | dc de | 
 c>d eg | ab g2 | B>c dg | a^f g2 | c>d eg | ab g2 | ag ^fe | dc BA ||  