Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/4
M:4/4
K:G
['d g2 f e d d e', 'e g'  
X:1
L:1/4
M:4/4
K:G
 d | g2 f e | d d e g | B (B d A) | G2 :| d | B G B d | g g e g | f d e ^c | d2 d d | g2 f e | 
 d d e g | B B c A | G2 :|  