Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:6/8
K:G
['G2 A', 'e2 f gfg'  
X:1
L:1/8
M:6/8
K:G
|: edB G2 A | Bed Bcd | edB G2 A | BAF GFE | DB,D G2 A | Bed Bcd | edB gdB | BAG ABd :: e2 f gfg | 
 eag fed | e2 f gfg | efg a2 a | bag agf | gfe def | gfe dBG | ABA ABd :|  