Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:4/4
K:G
['DG (3GFG Bd d2 dedB', 'AGEG dg (3gfg bg (3gfg dBBA'  
X:1
L:1/8
M:4/4
K:G
 DG (3GFG Bd d2 | dedB gedB | G2 BG dGBG | c2 Bc AGEG | DG (3GFG Bd d2 | dedB d2 gf | 
 (3ege ed Bdef | gedB AGEG :| dg (3gfg bg (3gfg | dBBA Bdef | g2 bg abge | d2 BG AGEG | 
 dg (3gfg bg (3gfg | dBBA B2 gf | (3ege ed Bdef | gedB AGEG :|  