Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:4/4
K:D
['', 'E2 FE', 'BA B3 A BcdB AFEF'  
X:1
L:1/8
M:4/4
K:D
 DB, |: A,B,DE D3 E | (3FED FA d2 cd | B3 d BAFD | E2 FE DB,B,D | A,B,DE D3 E | (3FED FA d2 cd | 
 B3 d BAFD |1 E2 FE D3 B, :|2 E2 FE D4 || d3 d- dded | cBcd c2 BA | B3 A BcdB | AFEF DB, B,2 | 
 d3 d- dded | cBcd c2 BA | B3 A BcdB | AFEF D4 | d3 d- dded | cBcd c2 BA | B3 A BcdB | 
 AFEF DB,B,D | A,B,DE D2 DE | (3FED FA d2 cd | B3 d BAFD | E2 FE D3 B, ||  