Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['', 'DG E2 DE', 'a2 ag agef'  
X:1
L:1/8
M:4/4
K:G
 DG |: E2 DE GABG | ABGE D2 DG | E2 DE GABd | egdB AG DG | E2 DE GABG | ABGE GABd | 
 eBBe fg e/d/B |1 c/B/A BG ED DG :|2 c/B/A BG ED D2 || a2 ag agef | g2 ge dGB/c/d | eaag agef | 
 gbbg aged | a2 ag agef | gbge dGB/c/d | c2 cA B2 BG | AGE/F/G ABce | a2 ag agef | g2 ge dGB/c/d | 
 eaag agef | g b2 ^a =aged | a2 ag agef | gbge dGB/c/d | c2 cA B2 BG | ABAG ED DG ||  