Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:4/4
K:G
['AB cABG AGEF G2 BG dGBG cABG', 'AB cdef g2 ea afge', 'A2 AB cdef g2 ea afge dBGA'  
X:1
L:1/8
M:4/4
K:G
|: AB | cABG AGEF | G2 BG dGBG | cABG AGED | EAAG A2 AB | cABG AGEF | G2 BG dGBG | cABG AGED | 
 EAAB A2 :| | AB | cdef g2 ea | afge dBGA | Bdef gefd | eaag a2 AB | cdef g2 ea | afge dBGB | 
 cABG AGED | EAAB A2 || | AB | cdef g2 ea | afge dBGA | Bdef gefd | eaag a2 ga | bagb agef | 
 gfge dBGB | cABG AGED | DAAG A2 ||  