Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
Q:1/4=150
M:2/4
K:D
['E^G/B/ EG/B/ dcdB Ac ec/e/', 'Bc de cA dEFG AGAE cc/B/ cd', "gf fe d2 aBcf ac' e2 fe/f/", 'fe dAfd'  
X:1
L:1/8
Q:1/4=150
M:2/4
K:D
 E^G/B/ EG/B/ | dcdB | Ac ec/e/ | aecA | E^G/B/ EG/B/ | dcdB | Ac ec/e/ | ddd z ::[K:A] BB/A/ Bc | 
 de cA | dEFG | AGAE | cc/B/ cd | fe c2 | dEFG | AAA z :: a2 gf | fe d2 | aBcf | ac' e2 | 
 fe/f/ dA | ag/a/ ec | dc/d/ BG | Ac A2 ::[K:D] df/a/ d'b | ba/g/ fe | dAfd | agfe | df/a/ d'b | 
 ba/g/ fe | dAfd | df d2 :|  