Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:4/4
K:G
['G3 A BA A2 bgag egdB GFGA', 'gfeg fdBd g2 ef gaba'  
X:1
L:1/8
M:4/4
K:G
 DE | G3 A BA A2 | bgag egdB | GFGA BAGE | ABAG EGDE | G3 A BA A2 | bgag egdB | GFGA BAGE | 
 ABAG E2 || ef | gfeg fdBd | g2 ef gaba | ge e2 edBd | ea a2 ag e2 | gfeg fdBd | g2 ef gaba | 
 gfge agaf | dgbg egdB ||  