Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:6/8
K:D
['eag fef d2 A e2 d', 'dfa a2 g fed d2 A e2'  
X:1
L:1/8
M:6/8
K:D
|:"D" d3 d3 | dcB"A" ABc |"D" dcB"A" AGF |"A7" G2 F"E7" E2 D |"A" e3 e>fg |"D" fed"A" eag | 
"D" fef d2 A | def"A" e2 d ::"D" fed"A" eAA |"D" fed"A" eAA |"G" gfe"D" fBB |"G" gfe"D" fBB | 
"D" fed"A" eAA |"D" fed"A" eag |"D" fef d2 A | def"A" e2 d ::"D" dfa dfa | dfa afd |"Em" egb egb | 
 egb bge |"D" dfa dfa | dfa"A7" a2 g |"D" fed d2 A | def"A" e2 d :|  