Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/4
M:3/4
K:G
['B A']  
X:1
L:1/4
M:3/4
K:G
 D | G3/2 F/ G | A B A | G3/2 F/ G | D2 G | D3/2 E/ D | B A G | A B A | G2 |]  