Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
Q:1/4=120
M:2/2
K:G
['d2 d2']  
X:1
L:1/8
Q:1/4=120
M:2/2
K:G
 B3 c d2 d2 | e2 (dc) B2 (AG) | c3 d (ed) (cB) | c3 d B2 A2 | d3 d g2 (=fe) | =f3 g ^c2 c2 | 
 (ded)e =f2 (ed) | d3 ^c d2 d2 | (efe)d c2 B2 | A3 G F2 A2 | (BcB)c (dcB)c | c3 B A2 .G2 |]  