Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
Q:1/2=90
M:2/2
K:Gmin
['g^f g4 GABc dcde d2 ba (ga', 'B6 f4 FGAB cBcd c2 f=e d=e', 'ga b2 B2 b2 agabab g2 G2', 'd=e f2 F2 f2 f=efgfa g2 G2'  
X:1
L:1/8
Q:1/2=90
M:2/2
K:Gmin
 g^f | g4 GABc | dcde d2 ba | (ga b2) (fd) (cB) | B6 :: f"^*"=e | f4 FGAB | cBcd c2 f=e | 
 d=e f2 b2 (bg) | (=ef) g2 (^fa) (dc) | (Bd) (gB) A2 ^f2 | g6 ::[M:3/4] ga | b2 B2 b2 | agabab | 
 g2 G2 g2 | f=efgfd | e2 e2 fe | d2 edcd | B2 G2 ^c2 | d4 :: d=e | f2 F2 f2 | f=efgfa | g2 G2 g2 | 
 gfgaga | b2 B2 b2 | a2 A2 g^f | =e^f (f3 e/f/) | g4 :|  