Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
Q:1/4=120
M:2/4
K:D
['FA-Af/g/ afed gfed B>dBA FAAf/g/ afed (e/f/g)', 'd2 (FAA)B A>BAF G/G/G G>A G>ABG FAAB'  
X:1
L:1/8
Q:1/4=120
M:2/4
K:D
 FA-Af/g/ | afed | gfed | B>dBA | FAAf/g/ | afed | (e/f/g) (f/g/a) | e2 d2 :| (FAA)B | A>BAF | 
 G/G/G G>A | G>ABG | FAAB | A>BAF | GAFd | E2 D2 :|  