Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/8=180
M:6/8
K:G
['G2 A B2', 'DED d2 d dAF DFA dAF E2', 'F2 D'  
X:1
L:1/8
Q:1/8=180
M:6/8
K:G
|: G2 A B2 G | A2 G FGA | B2 E EFE | B2 E EFE | G2 A B2 c | d2 A BAG | F2 D DED | F2 D DED :: 
 d2 d dAF | DFA dAF | E2 G GFE | G2 E EFE | d^cd edc | d^cB ABA | F2 D DED | F2 D DED :: g2 g gag | 
 f2 f fgf | e2 e e2 g | bge e2 f | gfg agf | edc BAG | F2 D DED | F2 D DED :|  