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:4/4
K:D
['B>A(B>=c) (B7/4A/4) F z/ B/ (AG)FE']  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
"^Andantino affettuoso.""^dolce"!p! A>A | d2 d>(e dc)cd | B>A(B>=c) (B7/4A/4) F z/ B/ | 
 (AG)FE (D>E)(FA) | (B2 c>)d d2 z A/>A/ | d2 d>(e dc)ed | B>A(B>=c) (B7/4A/4) F z/ B/ | 
 (AG)FE D>E(FA) | (B2 c>)d d4 | d2 d>e f3 f | (gf)ed (f>d) B2 | (d>f)ed (dc) z d | 
 (B>A)Bd B>A !fermata!F (d/f/) | (a>g)fe d2 dc | (B>A)Bd B>A !fermata!FB | (AG)(FE) (D>E)FA | 
 (B2 !fermata!c>)d d4 |]  