Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:6/8
K:D
['d3 d2 e dcB ABc dcB AGF', 'fed eAA', 'dfa dfa'  
X:1
L:1/8
M:6/8
K:D
 d3 d2 e | dcB ABc | dcB AGF | GAF E2 D | e3 efg | fed eag | f3 d2 c | def e2 d :| fed eAA | 
 fed eAA | gfe fBB | gfe fBB | fed eAA | fed eag | f3 dBA | Bdf e2 d :| dfa dfa | dfa agf | 
 egb egb | egb bge | dfa dfa | dfa a2 g | f3 dBA | def e2 d :|  