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
['FDF AFA d2 A BdB', 'afa bag fge'  
X:1
L:1/8
M:6/8
K:D
 D3 FDF | AFA d2 A | BdB BAB | def edB | ADD FDF | AFA d2 A | BdB BAF | dAF EFE :| D2 a afa | 
 bag fge | dfa afe | def edB | dfa afa | bag fge | d2 B AFA | dAF EFE :|  