Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:12/8
K:G
['G2 D EDE GAB d3 ded B2', 'ded B2 A'  
X:1
L:1/8
M:12/8
K:G
|: G2 D EDE GAB d3 | ded B2 A G2 E EDE | G2 D EDE GAB d3 | ded B2 A AGG G3 :: Bdd Bdd dBA B3 | 
 ded B2 A G2 E EDE | G2 D EDE GAB d3 | ded B2 A AGG G3 :|  