Compose music that abides by the dictated structure and encompass the given theme
X:1
L:1/8
M:4/4
K:D
['D>EF>G A2 A2 A>cd>e f2 a2 g>ef>d', 'a2 g2 f3 e d>fe>d B4 g>ef>d'  
X:1
L:1/8
M:4/4
K:D
|: D>EF>G A2 A2 | A>cd>e f2 a2 | g>ef>d e>cd>B | A>BA>F E>GF>E | D>EF>G A2 A2 | A>cd>e f2 a2 | 
 g>ef>d e2 a2 | (3AAA (B>c) d4 :: a2 g2 f3 e | d>fe>d B4 | g>ef>d e2 d2 | (3(cfe) (3(dcB) A4 | 
 a2 g2 f3 e | d>fe>d B4 | g>ef>d e2 a2 | (3AAA (B>c) d4 :|  