Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:4/4
K:G
['dggd BcdB G2 AB', '(3ABA GF G2'  
X:1
L:1/8
M:4/4
K:G
 g2 bg dggd | BcdB G2 AB | c2 ed cBAG | FAEA D2 (3Bcd | gbbg dggd | BcdB G2 AB | cedc BAGF |1 
 (3ABA GF G2 (3Bcd :|2 (3ABA GF G2 Bc |: dBdB g3 f | ecec a3 g | f3 a g3 e | fdaf defd | 
 gbbg dggd | BcdB G2 AB | cedc BAGF |1 (3ABA GF G2 Bc :|2 (3ABA GF G2 (3Bcd |]  