Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:4/4
K:D
['f2 f2', 'f2 f2'  
X:1
L:1/8
M:4/4
K:D
 D2 FA G2 BB | Acce f2 f2 | gfed c2 e2 | edcB AGFE | D2 FA G2 BB | Acce f2 f2 | gfed cdef |1 
 e2 dc d2 D2 :|2 e2 dc d2 d2 || f2 f2 f2 f2 | gfed c2 e2 | edcB A2 F2 | FGAB A2 d2 | f2 f2 f2 f2 | 
 gfed c2 e2 | edcB ABce |1 e2 dc d2 d2 :| e2 dc d2 .A z ||  