Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:2/2
K:D
['f2 fd f2']  
X:1
L:1/8
M:2/2
K:D
"D"{de} f2 fd f2 fd | f2 fd"A" cAec |"D" f2 fd"Em" gfed |"A7" cABc"D" d2 de |"D" f2 fd f2 fd | 
 f2 fd"A" cAec |"D" f2 fd"Em" gfed |"A7" cA"A7"Bc"D" de"A7"fg |"D" a2 af"B7" [b^d]2 ba | 
"Em" gfge"A" [ac]2 ag |"D" fefd"G" B2 ge |"A" cABc"Bm" de"A7"fg |"D" a2 af"B7" [b^d]2 ba | 
"Em" gfge"A" a2 ag |"D" fefd"G" B2 ge |"A" cABc"D" d2 z2 |]  