Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
M:2/2
K:D
['G2 G2 EDEF GFGA Bdef g2 f2', 'agef gage dBAB'  
X:1
L:1/8
M:2/2
K:D
 D2 |"G" G2 G2 EDEF | GFGA Bdef |"C" g2 f2 edef |"D" gage dBAF |"G" G2 G2 EDEF | GFGA Bdef | 
"C" g2 f2 edBA |"D" dBAF"G" G2 :: d2 |"C" [eg]2 [eg]2- [eg]2 [eg]2- | [eg]2 g2 ga g2 | 
"G" [dg]2 [dg]2- [dg]2 [dg]2- | [dg]2 [dg][dg] [Bg]2 [dg]2 |"C" [eg]4 g2 b2- | b2 b2 agef | 
"G" gage dBAB |"D" dBAF"G" G2 :|  