Craft a musical piece that abides by the prescribed structural guidelines and the given theme.
X:1
L:1/8
M:4/4
K:G
['D2 D2 B>AG>F E2 E2 c4 D>EF>G', 'd>BG>B d>BG>D F2 (E>^D) E2 (AB)'  
X:1
L:1/8
M:4/4
K:G
|: D2 D2 B>AG>F | E2 E2 c4 | D>EF>G A>Bc>d | e>dd>^c d4 | D2 D2 B>AG>F | E2 E2 c4 | 
 D>EF>G A>B (3(cBA) | G2 B2 G2 :| B>c | d>BG>B d>BG>D | F2 (E>^D) E2 (AB) | c>AF>A c>AF>D | 
 E2 (D>^C) D2 (B>c) | d>BG>B d>BG>D | F2 (E>^D) E2 (AB) | c>AF>D E2 F2 | G2 G2 G4 |]  