Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
Q:1/8=140
M:6/8
K:D
['A2 d def', 'DFA ABc'  
X:1
L:1/8
Q:1/8=140
M:6/8
K:D
"^lively" A | A2 d def | dcB A2 F | A2 d def | gfe fdB | A2 d def | dcB A2 F | F2 D GEC | 
 D2 D D2 || E | DFA ABc | GFE E2 F | DFA ABc | d3 F2 E | DFA ABc | GFE EFG | dAF GEC | D2 D D3 |]  