Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:2/2
K:G
['G2 (BG)', 'gdBd edBd'  
X:1
L:1/8
M:2/2
K:G
 (3(DEF)"^Segno" | G2 (BG) cGBG | FADA FADA | G2 (BG) dGBd | egfa gedB | G2 (BG) dGBG | FADA FADA | 
 G2 (BG) dGBd | egfa g2 g2 !fermata!x || gdBd edBd | gabg fdef | gdBd edBd | egfa g2 g2 | 
 gabg efge | dedc BGBd | efed edBd | egfa gedB"^Segno" ||  