Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:6/8
K:D
['ABc def b3 afd cde', 'g b2 a f2 a gfe bag', "Bgf e3 eab c'3 c'ef"  
X:1
L:1/8
M:6/8
K:D
 A | ABc def |"_>" b3 afd | cde gBe | dcB AFG | ABc def |"_>" b3 afd | cde ABc | d3 d2 |] 
 !fermata!f | efg A2 g | b2 a f2 a | gfe bag | f3 fga | bag g3 | agf f3 | efg ABc | d3"^D.C." d2 |] 
[K:G] d/c/ | B3 Bgf | e3 eab | c'3 c'ef | geb d'2 d/c/ | B3 Bgf | e3 eab | c'3 c'ef | 
 g3-"^D.C." g2 |]  