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
['EA (3AAA cA (3AAA BGGF GABd (3efg', 'a2 bg'  
X:1
L:1/8
M:4/4
K:G
 EA (3AAA cA (3AAA | BGGF GABd | (3efg dB A2"^tr" ge | dBGB cA A2 :| eaag a2 bg | a2 bg agef | 
 g2"^tr" gf gaba | gedB BA A2 | eaag a2 bg | a2 bg agef | gedB cdef | gedB cABG ||  