Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
M:2/2
K:G
['g2 (fd) edBA GABG AGEF GFGA BABd', '(3gab (eg) b2 (ag) (3fga (df)'  
X:1
L:1/8
M:2/2
K:G
 (3def |S g2 (fd) edBA | GABG AGEF | GFGA BABd | (3efg (af) gfed | g2 (fd) edBA | GABG AGEF | 
 GFGA BABd | (3efg af g2 || (!fermata!ef) | (3gab (eg) b2 (ag) | (3fga (df) a2 (gf) | 
 (3gab (eg) b2 (ag) | (3fga (df) e2 (ef) | g b2 b b2 ag | f a2 a a2 gf | (3gag bg (3fgf af | 
 edef gbafS |]  