Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
M:2/2
K:G
['D2 DE', 'G2 (3def g2 gf gbag f2 fe'  
X:1
L:1/8
M:2/2
K:G
 GE | D2 DE G3 A | BABd cBAG | FGFE DEFE | D2 cA BAGE | D2 DE GFGA | BGBd efge | dcBA GFGA | 
 B2 G2 G2 :: (3def | g2 gf gbag | f2 fe fagf | edef gfed | Beed e2 ge | dBGB d2 (3Bcd | 
 egfa g2 ge | dcBA GFGA | B2 G2 G2 :|  