Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['g dGBG .F(A-A>c) BGBd (e/f/g) (Tf>e) dGBG', 'g2 (Tf>g) afed gg'  
X:1
L:1/8
M:4/4
K:G
 g | dGBG .F(A-A>c) | BGBd (e/f/g) (Tf>e) | dGBG (FA-A>B) | EGFA G2 G :| d | g2 (Tf>g) afed | 
 gg Tf>g{fg} a2 d2 | dgfg afed | (e/f/g) (f/g/a) g2 (.g.d) | g2 (Tf>g) | afed | gg fg{fg} a2 d2 | 
 dgfg afed | egfa gbeg!D.C.! ||  