Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['G2 DG'  
X:1
L:1/8
M:4/4
K:G
|:"G" G2 DG BcdB | G2 DE"F" =FEDE |"G" G2 DG Bcde |"F" =fed^c"D" d2 B=c |"G" dg g/g/g"D" dc c/c/c | 
"G" Bcde fdef | gfdc BG G/G/G |"D" FGAF"G" G4 ::"G" g2 dg bgdg | g2 de"F" =fede |"G" g2 dg bgdB | 
"D" cBAB cdef |"G" gedc BG G/G/G |"D" FGAB cABc |"G" dg g/g/g defd |"D" cAFA"G" G4 :|  