Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['g>f e>fe>d (3Bce d>B A>GE>G A>cB<A G2', 'G2- G>A'  
X:1
L:1/8
M:4/4
K:G
|: g>f | e>fe>d (3Bce d>B | A>GE>G A>cB<A | G2 (3FGA B>G (3Bcd | e2 A2 A2 g<f | e2- e>d B>e (3dcB | 
 A2- A>G (3ABc B>A | G>DG>A B>dA>d | B>GG>F G2- :: G>A | B>G (3Bcd g2 f>g | a>gf<g e2- e>f | 
 g2- g>f e>d (3Bcd | (3efe (3AAA A2- A>g | a2- a>f g>ed>B | c>BA>G A>c (3BcA | 
 G2- G>A (3Bcd (3ABc | B2- B>G G2- :|  