Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
M:4/4
K:G
['DG G2', 'edge dB B2 AGEG cE E2 GE'  
X:1
L:1/8
M:4/4
K:G
|: DG G2 DGBG | AcBG AGEG | DG G2 DGBd | egdg edge | dB B2 AGEG | cE E2 GEDB | DEGA BABc |1 
 dBAc BG G2 :|2 dBAc BGGA |: Bdd^c d2 Bd | egdg edge | dB B2 AGEG | cE E2 GE D2 | Bdd^c d2 ef | 
 g2 fa gedB | DEGA BABc | dBAc BG G2 :|  