Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:2/2
K:Gmin
['BAGF (3(D=E^F) GA', 'G2 Ggg^f gag=f', 'dgga (3(bag)'  
X:1
L:1/8
M:2/2
K:Gmin
 BAGF DGGB | AFcF dFcF | BAGF (3(D=E^F) GA | BABc dgga | (3(bag) a^f gdd=e | fdcB AF F2 | 
 BAGF (3(D=E^F) GA | (Bd)cA (BG) G2 |] Ggg^f gag=f | Fff=e fgfA || Ggg^f dgga | (3(bag) af dgga | 
 (3(bag) (3(agf) gdd=e | fdcB AF F2 | BAGF (3(D=E^F) GA | (Bd)cA BG G2 |]  