Compose a piece incorporating the provided motif while adhering to the given musical structure.
X:1
L:1/8
M:2/2
K:Gmin
['G,2 A,2 B,2', 'g2 d4 g4 f2 (B2 A2 B2)'  
X:1
L:1/8
M:2/2
K:Gmin
 G,2 A,2 B,2 z2 | z3/2 b<ag/ g>a b2 | G,2 A,2 B,2 C2 | z3/2 b<a^f/ g2 :: d4 g4 | f2 (B2 A2 B2) | 
 (=B2 c2) (B2 c2) | f8 | f4 ^f4 | g>^fg>a b>ag>=f | =e>fa>g f>_ed>c | B2 b2 B2 z2 :|  