Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/4
Q:1/4=160
M:4/4
K:G
['B A G', 'd d'  
X:1
L:1/4
Q:1/4=160
M:4/4
K:G
"^A" d/c/ | B A G d/c/ | B A G d | e c c/d/e/c/ | d3/2 c/ B d | c B A G | F/G/A/F/ D d/c/ | 
 B/A/ G A F | G2 G ::"^B" B/c/ | d d d e/f/ | g d d A/B/ | c A B G | A F D2 | G G A A | B/A/ G g2 | 
 g d e2 | d B c2 | c B A G | F/G/A/F/ D d/c/ | B/A/ G A F | G2 G :|  