Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:2/4
K:D
['d/d/d fd', 'g2 dB'  
X:1
L:1/8
M:2/4
K:D
|: d/d/d fd | g2 ec | d/d/d fd | e2 cA | d/d/d fd | ge ge | e/f/g f/g/a | e2 cA :| g2 dB | Bg dB | 
 g2 dB | Ae cA | g2 dB | Bg dB | e/f/g f/g/a | e2 cA :|  