Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:2/4
K:D
['ff{a} g/f/g/b/ aa A>f gg', 'f/f/f g/g/g gf', 'B2 B3 (D/G/) (Bc^cd) (f2 e) z'  
X:1
L:1/8
M:2/4
K:D
 ff{a} g/f/g/b/ | aa A>f | gg A>e | ff A2 | ff{a} g/f/g/b/ | aa A>f | gg A>c | ddd z :: 
 f/f/f g/g/g | gf (F/A/d/e/) | (3f/g/f/e (3f/g/f/e | (3e/f/e/d A2 | f/f/f g/g/g | gf F/A/d/e/ | 
 (3f/g/f/e (3f/g/f/e | ddd z :|[K:G] B2 B2 | B3 (D/G/) | (Bc^cd) | (f2 e) z | A2 A2 | A2 ^G/A/ | 
 BAFD | (E2 D) z | B2 B2 | B3 (D/G/) | (Bc^cd) | (f2 e) z | d(^c/d/) e(f/e/) | e d2 B | d c2 A | 
 G z g z :|  