Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:9/8
K:D
['A A2 dcA', 'GAB GBd g2 g'  
X:1
L:1/8
M:9/8
K:D
|: ABA dcA d2 d | A A2 dcA GFG | A A2 dcA d2 e | faf efe dcA :: GAB GBd g2 g | GAB GAG FED | 
 GAB GBd g2 g | fgf efe dBA :|  