Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:2/2
K:G
['G2 Bd e2 dB', '(fd)de fdag (fd) d2'  
X:1
L:1/8
M:2/2
K:G
 G2 Bd e2 dB | (GA)BG (AG)EF | G2 Bd e2 dB | (cA)BG (EG) G2 :| (!fermata!f<a)ag (fd)de | 
 fdag (fd) d2 | (f<a)ag (fd)df | edef gfed | (f<a)ag (fd)de | fdag (fd) d2 | bgaf gfef | 
 dfaf gedB |]  