Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:3/4
K:G
['G2 D2']  
X:1
L:1/8
M:3/4
K:G
 B, D/ | G3 BA F | G2 D2 D3/2 D/ | E3 FG(B/A/) | (G2 F2) D3/2 G/ | B3 GA F | G2 D2 z2 | 
 E3/2 E/ A2 F2 | G4 F3/2 G/ | A3 AF D | G2 A2 B3/2 B/ | c3 AB G | (B2 A2) d3/2 c/ | B3 cA B | 
 G2 D2 z2 | E3 EA F | G4 ||  