Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:4/4
K:G
['BGAG BGAG', 'egdg egdB AG E2 eg (3.g.g.g abgd'  
X:1
L:1/8
M:4/4
K:G
 BGAG EGDG | BGAG BGAG | BGAG EGDE |1 GABA G3 A :|2 GABA G3 g || egdB AGEg | egdg egdg | 
 egdB AG E2 | eg (3.g.g.g abgd | egdg edgd | egdB AGED | (3.G.G.G BG EGDE | GABA G4 ||  