Compose music that abides by the dictated structure and encompass the given theme
X:1
L:1/8
M:4/4
K:G
['G3 dGBc dgfg edcB', 'd2 GdBd dgfg'  
X:1
L:1/8
M:4/4
K:G
 e | d G3 dGBc | dgfg edcB | c A3 eABd | e2 (3def gedc | B G3 dGBc | dgfg edcB | cdef gfge | 
 dggd BGG || e | (3ded d2 GdBd | dgfg egdg | e2{d} e2 Aece | aGgG =fGce | d2{c} d2 GdBd | 
 dgfg egdB | cdef gfge | dggd BGG ||  